package com.reservation.mapper;

import com.reservation.dto.user.home.UpdateInfoDTO;
import com.reservation.vo.user.home.GetTypeCountVO;
import com.reservation.vo.user.home.GetWeekCountVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface HomeMapper {

//    修改用户信息接口
    int updateInfo(UpdateInfoDTO infoDTO);

    int getOrderCount(int id);
    Double getTotalMoney(int id);
    Double getRefundMoney(int id);
    String getFirstDate(int id);

    List<GetTypeCountVO> getTypeCount(int id);

    List<GetWeekCountVO> getWeekCount(int id);
}
